import request from '@/utils/request'

// 查询医疗机构计分记录列表
export function getOrgScoringListAPI(query) {
  return request({
    url: '/medical/zpMedicalOrgScoring/list',
    method: 'get',
    params: query
  })
}

// 查询医疗机构计分记录详细
export function getScoring(id) {
  return request({
    url: '/zpMedicalOrg/scoring/' + id,
    method: 'get'
  })
}

// 新增医疗机构计分记录
export function addScoring(data) {
  return request({
    url: '/zpMedicalOrg/scoring',
    method: 'post',
    data: data
  })
}

// 修改医疗机构计分记录
export function updateScoring(data) {
  return request({
    url: '/zpMedicalOrg/scoring',
    method: 'put',
    data: data
  })
}

// 删除医疗机构计分记录
export function delScoring(id) {
  return request({
    url: '/zpMedicalOrg/scoring/' + id,
    method: 'delete'
  })
}
